import App from './App'
import { createSSRApp } from 'vue'
import Http from '@/utils/index.js'

const CommondPlugin = {
	install(app){
		app.config.globalProperties.$http = new Http();
	}
}

export function createApp() {
  const app = createSSRApp(App)
  app.use(CommondPlugin)
  return {
    app
  }
}